from common.base import Base


class Oder_num_page(Base):

    order_num_loc=("css selector","body > div:nth-child(7) > div > h6 > font")

    def get_num(self):
        num=self.find_element(self.order_num_loc)
        res=num.text
        print(f"成功下单后的订单号{res}")
        return res


